package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CommunityRoomResidentMapper;
import com.ruoyi.system.domain.CommunityRoomResident;
import com.ruoyi.system.service.ICommunityRoomResidentService;

/**
 * roomsResidentService业务层处理
 * 
 * @author yhb
 * @date 2024-03-29
 */
@Service
public class CommunityRoomResidentServiceImpl implements ICommunityRoomResidentService 
{
    @Autowired
    private CommunityRoomResidentMapper communityRoomResidentMapper;

    /**
     * 查询roomsResident
     * 
     * @param id roomsResident主键
     * @return roomsResident
     */
    @Override
    public CommunityRoomResident selectCommunityRoomResidentById(Long id)
    {
        return communityRoomResidentMapper.selectCommunityRoomResidentById(id);
    }

    /**
     * 查询roomsResident列表
     * 
     * @param communityRoomResident roomsResident
     * @return roomsResident
     */
    @Override
    public List<CommunityRoomResident> selectCommunityRoomResidentList(CommunityRoomResident communityRoomResident)
    {
        return communityRoomResidentMapper.selectCommunityRoomResidentList(communityRoomResident);
    }

    /**
     * 新增roomsResident
     * 
     * @param communityRoomResident roomsResident
     * @return 结果
     */
    @Override
    public int insertCommunityRoomResident(CommunityRoomResident communityRoomResident)
    {
        return communityRoomResidentMapper.insertCommunityRoomResident(communityRoomResident);
    }

    /**
     * 修改roomsResident
     * 
     * @param communityRoomResident roomsResident
     * @return 结果
     */
    @Override
    public int updateCommunityRoomResident(CommunityRoomResident communityRoomResident)
    {
        return communityRoomResidentMapper.updateCommunityRoomResident(communityRoomResident);
    }

    /**
     * 批量删除roomsResident
     * 
     * @param ids 需要删除的roomsResident主键
     * @return 结果
     */
    @Override
    public int deleteCommunityRoomResidentByIds(CommunityRoomResident communityRoomResident)
    {
        return communityRoomResidentMapper.deleteCommunityRoomResidentByIds(communityRoomResident);
    }

    /**
     * 删除roomsResident信息
     * 
     * @param id roomsResident主键
     * @return 结果
     */
    @Override
    public int deleteCommunityRoomResidentById(int id)
    {
        return communityRoomResidentMapper.deleteCommunityRoomResidentById(id);
    }
}
